-
-
Notifications
You must be signed in to change notification settings - Fork 0
fix(eslint): update React rules and remove hook #315
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- Update React ESLint rules configuration - Remove unused post-merge hook
🦋 Changeset detectedLatest commit: 58a868e The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
💡 Enable Vercel Agent with $100 free credit for automated AI reviews |
WalkthroughThe PR updates React ESLint rules configuration by replacing core rule defaults with eslint-plugin-react-x rules, removes the post-merge git hook, updates commit creation documentation, and introduces a changeset file for a patch release to the @mheob/eslint-config package. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Suggested labels
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (4)
💤 Files with no reviewable changes (1)
🧰 Additional context used📓 Path-based instructions (2).changeset/*.md📄 CodeRabbit inference engine (CLAUDE.md)
Files:
**/*.{ts,tsx}📄 CodeRabbit inference engine (.cursor/rules/any-inside-generic-functions.mdc)
Files:
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🔇 Additional comments (4)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
PR Review: fix(eslint): update React rules and remove hookSummaryThis PR updates React ESLint rules to align with eslint-plugin-react-x recommendations and removes an unused post-merge hook. Overall, the changes are solid and well-motivated. I have a few observations and recommendations below. ✅ Code Quality & Best PracticesPositive aspects:
Recommendations:
🐛 Potential IssuesMedium Priority:
Low Priority:
Consider adding a brief comment in the commit message or PR description explaining why this rule was removed. ⚡ Performance Considerations
🔒 Security ConcernsNo security issues identified. The changes are improving code quality by:
These rules help prevent subtle bugs that could have security implications in React applications. 📋 Additional Recommendations
Verdict: ✅ Approve with minor suggestionsThe core changes are well-reasoned and improve the ESLint configuration. The only blocker would be ensuring the typegen.d.ts file is regenerated/updated before or after merge to maintain consistency. Suggested next steps:
|
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. # Releases ## @mheob/[email protected] ### Patch Changes - [#315](#315) ([@mheob](https://github.com/mheob)): Update React ESLint rules configuration.



Summary
Updates React ESLint rules configuration to align with eslint-plugin-react-x recommendations and removes unused post-merge hook.
Changes
packages/eslint-config/src/configs/react.tsjsx-no-duplicate-props,jsx-uses-react,jsx-uses-varsjsx-no-comment-textnodesruleno-comment-textnodesintojsx-no-comment-textnodesno-misused-capture-owner-stackrule.husky/post-mergehook (no longer needed)Motivation
Ensures React ESLint rules are properly configured according to the latest eslint-plugin-react-x recommendations and removes unused automation that is no longer required.
Summary by CodeRabbit
Updates
Chores